from django.conf.urls import url
from django.contrib.auth.views import login, logout

import views

urlpatterns = [
    url(r'^auth/$',views.sign_in),
    url(r'^login$', login, name='login'),
    url(r'^logout$',logout),
    url(r'^statistic/$',views.projects_statistic),
    url(r'^projects/$', views.projects_view),
    url(r'^reports/$',views.reports_view),
    url(r'^about/$',views.about_view),
    url(r'^project/create/$', views.project_create_view, name='pcreate'),
    url(r'^project/save$', views.project_save, name='psave'),
    url(r'^project/edit/(?P<pid>[0-9]+)$', views.project_edit_view, name='pedit'),
    url(r'^project/update/$',views.project_update),
    url(r'^project/active/$',views.project_active),
    url(r'^project/inactive/$',views.project_inactive),
    url(r'^project/setting_save/$',views.project_set),
    url(r'^project/setting/(?P<pid>[0-9]+)$$',views.project_setting_view),
    url(r'^project_report/$',views.project_report),
    url(r'^module/create/(?P<pid>[0-9]+)$', views.module_create_view, name='mcreate'),
    url(r'^module/save$', views.module_save, name='msave'),
    url(r'^api/create/(?P<mid>[0-9]+)$', views.api_create_view, name='acreate'),
    url(r'^api/save$', views.api_save, name='asave'),
    url(r'^project/(?P<pid>[0-9]+)$', views.project_view, name='project'),
    url(r'^apis/(?P<mid>[0-9]+)$', views.apis_view, name='apis'),
    url(r'^api/edit/(?P<aid>[0-9]+)$', views.api_edit_view, name='aedit'),
    url(r'^api/report/(?P<aid>[0-9]+)$', views.api_report_view, name='apireport'),
    url(r'^all/report/$',views.all_report_view),
    url(r'^api/update/(?P<aid>[0-9]+)$', views.api_update, name='aupdate'),
    url(r'^cases/test/$',views.multi_case_test),
    url(r'^cases/(?P<aid>[0-9]+)$', views.cases_view, name='cases'),
    url(r'^case/create/(?P<aid>[0-9]+)$', views.case_create_view),
    url(r'^case/edit/(?P<cid>[0-9]+)$', views.case_edit_view, name='cedit'),
    url(r'^case/update/(?P<cid>[0-9]+)$',views.case_update, name='cupdate'),
    url(r'^case/save/$', views.case_save),
    url(r'^module/active/$',views.module_active),
    url(r'^module/inactive/$',views.module_inactive),
    url(r'^api/active/(?P<aid>[0-9]+)$', views.api_active),
    url(r'^api/inactive/(?P<aid>[0-9]+)$', views.api_inactive, name='ainactive'),
    url(r'^case/active/$',views.case_active),
    url(r'^case/inactive/$',views.case_inactive),
    url(r'^case/report/$',views.case_report_view),
    url(r'^case/test/(?P<cid>[0-9]+)$', views.case_test, name='runtest'),
    url(r'^all/test/$',views.all_test),
    url(r'^get/allcases/$',views.get_allcases),
    url(r'^$', views.home),
]
